#include<iostream>
#include<string>
#include<list>
using namespace std;

void printList(list<int>&L)
{
	for (list<int>::iterator it =L.begin();it!=L.end();it++)
	{
		cout << *it << " ";
	}
	cout << endl;
}
void test01()
{
	list<int>L1;
	for (int i = 1; i < 5; i++)
	{
		L1.push_back(i);
	}
	L1.resize(10,10);
	printList(L1);
	if (!L1.empty())
	{
		cout << L1.size() << endl;
	}
}
int main()
{
	test01();

	system("pause");

	return 0;
}